tmem: fix corner case crash on forcible domain destruction
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 1 Jun 2009 13:07:46 +0000 (14:07 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 1 Jun 2009 13:07:46 +0000 (14:07 +0100)
commitf475395032ee456f85242bd14fe59061b6d48b3f
treea9c940a1c0a0f9d2414dc4a1088feffe53a76645
parent630ec346adf58902b3ebc81321cf85ea2ffa826a
tmem: fix corner case crash on forcible domain destruction

When a tmem-enabled domain is destroyed, if the domain was
using a persistent pool, the domain destruction process
to scrubs page races tmem's attempts to gracefully dismantle
data structures.  Move tmem_destroy earlier in the domain
destruction process.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/common/domain.c
xen/common/tmem.c